package com.wr.online.test.model.vo;

import com.wr.online.test.validator.ValidationGroups;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author ：GZHU_WANG
 * @date ：Created in 2021/10/27 14:18
 * @description：用户作答详情对象
 */
@Getter
@ToString
@AllArgsConstructor
public class UserAnswerVO {
    /**
     * 试卷id
     */
    private Integer paperId;
    /**
     * 题目id
     */
    @NotNull(message = "题目id不能空",groups = {ValidationGroups.Update.class})
    private Integer subjectId;
    /**
     * 选项顺序，多的逗号隔开，存的是答案id
     */
    private String optionOrder;
    /**
     * 笔试者作答内容，(如果是单选或多选，存选项id[逗号隔开])
     */
//    @NotEmpty(message = "作答内容不能有空",groups = {ValidationGroups.Update.class})
    private String userAnswer;
    /**
     * 这道题是否有附件
     */
    private Boolean hasFile;
    /**
     * 附件(图片等)，存放的是地址
     */
    private String other;


}
